<template>
  <div class="layout-page">
    <router-view></router-view>

    <!-- 开启路由模式: route -->
    <van-tabbar route>
      <!-- to: 跳转的路径 -->
      <!-- replace: 不记录历史, 跳转页面直接替换当前最新的页面, 返回会直接退出程序 -->
      <van-tabbar-item replace to="/article" icon="notes-o">面经</van-tabbar-item>
      <van-tabbar-item replace to="/collect" icon="star-o">收藏</van-tabbar-item>
      <van-tabbar-item replace to="/like" icon="like-o">喜欢</van-tabbar-item>
      <van-tabbar-item replace to="/user" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'LayoutPage'
}
</script>

<style lang="less" scoped></style>
